package the.workshop.bu.dto.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.wisteria.framework.web.mvc.dto.ConditionDTO;
import the.workshop.bu.constant.CheckTypeEnum;

import java.io.Serializable;

/**
 * 手机检测查询条件
 */
@Data
public class MobileCheckConditionReq extends ConditionDTO implements Serializable {
    private static final long serialVersionUID = 5234014299058866213L;

    @ApiModelProperty("检测类型")
    private int checkType = 1;

    @ApiModelProperty("业务类型")
    private int bizType;

    /**
     * 检测标记
     * 0未检测；1已检测
     */
    private int checkFlag;

    /**
     * 手机号码
     */
    private String telNumber;

    /**
     * 客户名称
     */
    private String customerName;

    /**
     * 客户状态
     */
    private String customerStatus;

    public String getCustomerStatus() {
        return CheckTypeEnum.MOBILE_NAME.getValue() == checkType ? "01000" : null;
    }

}
